package com.ben.xinyue.seckill.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: xinyue
 * @date: 2020/09/04 09:36
 * @description: 
 * @modifiedBy:
 * @version: 1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("miaosha_user")
public class MiaoshaUser implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID，手机号码
	 */
	@TableId
	private Long id;
	/**
	 * 
	 */
	private String nickname;
	/**
	 * MD5(MD5(pass明文+固定salt) + salt)
	 */
	private String password;
	/**
	 * 
	 */
	private String salt;
	/**
	 * 头像，云存储的ID
	 */
	private String head;
	/**
	 * 注册时间
	 */
	private Date registerDate;
	/**
	 * 上蔟登录时间
	 */
	private Date lastLoginDate;
	/**
	 * 登录次数
	 */
	private Integer loginCount;

}
